Skip to content

Add Crowd Evacuation simulation example (ContinuousSpace - Social Force Model)#430

Open
Austin-dev-dot wants to merge 7 commits intomesa:mainfrom
Austin-dev-dot:add-crowd-evacuation
Open

Add Crowd Evacuation simulation example (ContinuousSpace - Social Force Model)#430
Austin-dev-dot wants to merge 7 commits intomesa:mainfrom
Austin-dev-dot:add-crowd-evacuation

Conversation

@Austin-dev-dot
Copy link

@Austin-dev-dot Austin-dev-dot commented Mar 22, 2026

Adds a crowd evacuation simulation that demonstrates Mesa's ContinuousSpace API.

What it demonstrates:
Continuous space interactions with non-toroidal room boundaries
Fast radius-based neighbor lookups for social repulsion
Agent-centric velocity and vector arithmetic for movement
Dynamic agent state handling (removing agents as they escape)

Files added:
crowd_evacuation/agents.py - Person agent calculating desired, social, and wall forces
crowd_evacuation/model.py - EvacuationModel with bounded space and exit placement
crowd_evacuation/app.py - SolaraViz web application drawing the room and real-time metrics
README.md
image

@Austin-dev-dot Austin-dev-dot changed the title Add Crowd Evacuation example (ContinuousSpace - Social Force Model) Add Crowd Evacuation simulation (ContinuousSpace - Social Force Model) Mar 22, 2026
@Austin-dev-dot Austin-dev-dot changed the title Add Crowd Evacuation simulation (ContinuousSpace - Social Force Model) Add Crowd Evacuation simulation example (ContinuousSpace - Social Force Model) Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant